using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN MonHocService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: MonHocService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class MonHocService : IMonHocService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: MonHoc_ID</para>
		/// <para>Output: MonHocEntity</para>
		///</summary>
		public MonHocEntity SelectOne(int MonHoc_ID){
			MonHocDAO dao = new MonHocDAO();
			return dao.SelectOne(MonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaMonHoc</para>
		/// <para>Input: MaMonHoc</para>
		/// <para>Output: MonHocEntity</para>
		///</summary>
		public MonHocEntity SelectOneByMaMonHoc(string MaMonHoc){
			MonHocDAO dao = new MonHocDAO();
			return dao.SelectOneByMaMonHoc(MaMonHoc);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of MonHocEntity</para>
		///</summary>
		public List<MonHocEntity> SelectAll(){
			MonHocDAO dao = new MonHocDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			MonHocDAO dao = new MonHocDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of MonHocEntity</para>
		///</summary>
		public List<MonHocEntity> SelectAllFilter(string strFilter){
			MonHocDAO dao = new MonHocDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			MonHocDAO dao = new MonHocDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: MonHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(MonHocEntity o){
			MonHocDAO dao = new MonHocDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: MonHocEntity</para>
		/// <para>Output: MonHocEntity</para>
		///</summary>
		public MonHocEntity SaveRet(MonHocEntity o){
			MonHocDAO dao = new MonHocDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of MonHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<MonHocEntity> list){
			MonHocDAO dao = new MonHocDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of MonHocEntity</para>
		/// <para>Output: List of MonHocEntity</para>
		///</summary>
		public List<MonHocEntity> SaveListRet(List<MonHocEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: MonHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(MonHocEntity o){
			MonHocDAO dao = new MonHocDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of MonHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<MonHocEntity> list){
			MonHocDAO dao = new MonHocDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaMonHoc</para>
		/// <para>Input: NewMaMonHoc,MonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaMonHoc(string NewMaMonHoc,int MonHoc_ID){
			MonHocDAO dao = new MonHocDAO();
			return dao.UpdateMaMonHoc(NewMaMonHoc,MonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenMonHoc</para>
		/// <para>Input: NewTenMonHoc,MonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenMonHoc(string NewTenMonHoc,int MonHoc_ID){
			MonHocDAO dao = new MonHocDAO();
			return dao.UpdateTenMonHoc(NewTenMonHoc,MonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateSoHocPhan</para>
		/// <para>Input: NewSoHocPhan,MonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSoHocPhan(Decimal NewSoHocPhan,int MonHoc_ID){
			MonHocDAO dao = new MonHocDAO();
			return dao.UpdateSoHocPhan(NewSoHocPhan,MonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateSoHocPhanHocPhi</para>
		/// <para>Input: NewSoHocPhanHocPhi,MonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSoHocPhanHocPhi(Decimal NewSoHocPhanHocPhi,int MonHoc_ID){
			MonHocDAO dao = new MonHocDAO();
			return dao.UpdateSoHocPhanHocPhi(NewSoHocPhanHocPhi,MonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateSoTietHoc</para>
		/// <para>Input: NewSoTietHoc,MonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSoTietHoc(Decimal NewSoTietHoc,int MonHoc_ID){
			MonHocDAO dao = new MonHocDAO();
			return dao.UpdateSoTietHoc(NewSoTietHoc,MonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTa</para>
		/// <para>Input: NewMoTa,MonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTa(string NewMoTa,int MonHoc_ID){
			MonHocDAO dao = new MonHocDAO();
			return dao.UpdateMoTa(NewMoTa,MonHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateBoMon_ID</para>
		/// <para>Input: NewBoMon_ID,MonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateBoMon_ID(int NewBoMon_ID,int MonHoc_ID){
			MonHocDAO dao = new MonHocDAO();
			return dao.UpdateBoMon_ID(NewBoMon_ID,MonHoc_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: MonHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(MonHocEntity o){
			MonHocDAO dao = new MonHocDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: MonHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int MonHoc_ID){
			MonHocDAO dao = new MonHocDAO();
			return dao.DeleteByID(MonHoc_ID);
		}
		#endregion

		#region Select join to BoMon functions
		#endregion

		#region Select,delete by MonHoc_ID functions
		#endregion

		#region Select,delete by BoMon_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END MonHocWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

